package vista;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class frmlistadodingredientemasusados extends javax.swing.JFrame {
	private JLabel Llblordenado;
	private JComboBox cmbordenado;
	private JLabel lbllistadoingredientemasusados;
	private JLabel lblnombreproducto;
	private JSeparator sp;
	private JButton btnsalir;
	private JScrollPane scingredientemasusado;
	private JComboBox cmbnombreproducto;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				frmlistadodingredientemasusados inst = new frmlistadodingredientemasusados();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public frmlistadodingredientemasusados() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Listado Ingredientes Mas Usados");
			getContentPane().setLayout(null);
			{
				Llblordenado = new JLabel();
				getContentPane().add(Llblordenado);
				Llblordenado.setText("Ordenado :");
				Llblordenado.setBounds(39, 42, 74, 16);
			}
			{
				ComboBoxModel cmbordenadoModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				cmbordenado = new JComboBox();
				getContentPane().add(cmbordenado);
				cmbordenado.setModel(cmbordenadoModel);
				cmbordenado.setBounds(119, 39, 117, 23);
			}
			{
				lbllistadoingredientemasusados = new JLabel();
				getContentPane().add(lbllistadoingredientemasusados);
				lbllistadoingredientemasusados.setText("Listado Ingrediente Mas Usados");
				lbllistadoingredientemasusados.setBounds(95, 11, 184, 16);
				lbllistadoingredientemasusados.setFont(new java.awt.Font("Segoe UI",1,12));
			}
			{
				lblnombreproducto = new JLabel();
				getContentPane().add(lblnombreproducto);
				lblnombreproducto.setText("Nombre del Producto :");
				lblnombreproducto.setBounds(39, 90, 138, 16);
			}
			{
				ComboBoxModel cmbnombreproductoModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				cmbnombreproducto = new JComboBox();
				getContentPane().add(cmbnombreproducto);
				cmbnombreproducto.setModel(cmbnombreproductoModel);
				cmbnombreproducto.setBounds(173, 83, 118, 23);
			}
			{
				scingredientemasusado = new JScrollPane();
				getContentPane().add(scingredientemasusado);
				scingredientemasusado.setBounds(22, 126, 339, 148);
			}
			{
				btnsalir = new JButton();
				getContentPane().add(btnsalir);
				btnsalir.setText("Salir");
				btnsalir.setBounds(273, 324, 78, 23);
			}
			{
				sp = new JSeparator();
				getContentPane().add(sp);
				sp.setBounds(0, 299, 384, 1);
			}
			pack();
			this.setSize(400, 402);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void addListener(ActionListener actionListener) {
		btnsalir.addActionListener(actionListener);
}

}
